
/*
 *  Copyright 2007 Marc Lanctot and Marc Gendron-Bellemare
 *
 *  This file is part of OpenMTG.
 *
 *  OpenMTG is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  OpenMTG is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with OpenMTG.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


import java.util.*;

public class DiscardInfo
{
	/** As long as this value is above 0, the player must discard cards before
	  * anything else. */
	private int aNumCardsDiscard;

	public DiscardInfo()
	{
		aNumCardsDiscard = 0;
	}
	
	public boolean mustDiscard()
	{
		return (aNumCardsDiscard > 0);
	}

	public int getNumCardsDiscard() { return aNumCardsDiscard; }

	public void discard()
	{
		if (aNumCardsDiscard > 0)
			aNumCardsDiscard--;
	}

	public void addNumCardsDiscard(int pNumCards)
	{
		aNumCardsDiscard += pNumCards;
	}

}
